package user;


import book.BookList;
import operation.IOPeration;

/**
 * @Author 12629
 * @Description：
 */
public abstract class User {
    public String name;

    public IOPeration[] ioPerations; //没有初始化

    public User(String name) {
        this.name = name;
    }

    public abstract int menu();

    public void doOperations(int choice, BookList books) {
        //return this.ioPerations[choice];
        IOPeration ioPeration = this.ioPerations[choice];
        //IOPeration ioPeration =  new FindBook();
        ioPeration.work(books);
    }
}
